<style>
	tr.none_border td{
		border-bottom:0;
	}
</style>
<?php if($this->numSellerEval > 0):?>
<!--<div class="grid_10 t_a_bottom">
    <div class="clearfix t_a_bottom">
        <?php echo $this->translator('customer_evaluation_point');?>: <?php echo $this->sumSellerEval/$this->numSellerEval;?>
    </div>
    <div class="clearfix t_a_bottom">
        <?php echo $this->translator('customer_evaluation_counter');?>: <?php echo $this->numSellerEval;?>
    </div>
</div>
<div class="grid_10" style="height:20px;">&nbsp;</div>-->
<?php endif;?>

<div class="grid_12">
    <table style="border:none; width: 100%" class="list">
        <tr class="caption">
	    	<td width="15%"><?php echo $this->translator('customer_evaluation_order');?></td>
	    	<td width="10%"><?php echo $this->translator('customer_total_amount');?></td>
	        <td width="70%"><?php echo $this->translator('customer_evaluation_feedback');?></td>                        
	        <td width="5%"><?php echo $this->translator('customer_evaluation_point_col');?></td>
	    </tr>
		<?php if($this->numSellerEval > 0):?>
	        <?php foreach($this->sellerEval as $s_row):?>
	        <?php
	            /**
	            * Customer info
	            **/
	            $sellerCus = isset($this->sellerCus[$s_row->buyer_user_id])?$this->sellerCus[$s_row->buyer_user_id]:null;
	            if($sellerCus){
	                $arrRoute = array(
	                    'user_name' => $sellerCus->user_name
	                );
	            }
	        ?>
	        <tr <?php if(trim($s_row->seller_to_buyer_feedback)):?>class="none_border"<?php endif;?>>
	            <td><?php echo $s_row->order_invoice;?></td>
	            <td><?php echo $s_row->order_total_amount;?> <i><?php echo $s_row->order_total_amount_currency;?></i></td>
	            <td>
	            	
	            <?php if($sellerCus):?><a href="<?php echo $this->url($arrRoute,'customer_customer_list');?>"><?php echo $sellerCus->full_name;?>:</a><?php endif;?>	            
	                <?php echo $s_row->buyer_to_seller_feedback;?>
	            </td>
	            <td align="center"><?php echo $s_row->buyer_to_seller_evaluation;?></td>            
	        </tr>
	        <?php if(trim($s_row->seller_to_buyer_feedback)):?>
		    <tr>
		    	<td>&nbsp;</td>
		    	<td>&nbsp;</td>
		        <td><b><?php echo $this->translator('customer_evaluation_answer');?>:</b> <?php echo $s_row->seller_to_buyer_feedback;?></td>
		        <td align="center"><?php echo ($s_row->seller_to_buyer_evaluation)?$s_row->seller_to_buyer_evaluation:'-';?></td>
		    </tr>
		    <?php endif;?>
	        <?php endforeach;?>
	        <?php if($this->paginator->getPages()->pageCount > 1):?>
		    <tr>
		    	<td colspan="6" class="seller_ajax_paginator">
		    		<?php echo $this->paginator()->slide($this->paginator, $this->paginatorOptions);?>
		    	</td>
		    </tr>	   
		    <?php endif;?>
	    <?php else:?>
		    <tr>
		    	<td colspan="6">
		    		<?php echo $this->translator('customer_no_evaluation_yet');?>
		    	</td>
		    </tr>
	    <?php endif;?>
    </table>
</div>

<script type="text/javascript">

$(document).ready(function() {
    $('.seller_ajax_paginator span a').click(function(evt){
        evt.preventDefault();
        href = $(this).attr('href');
        me = $(this);
        sellerAjax1(me,href);
    });
});

function sellerAjax1(me,url){
    http = 'http://'+'<?php echo $_SERVER['HTTP_HOST'];?>';
    route = http+url;

    $(me).html('').addClass('t_a_ui_helper_loading');
    jQuery.ajaxq('seller1', {
        type: 'POST',
        url: route,
        data: {},
        success: function(html) {
            $(me).html('').removeClass('t_a_ui_helper_loading');
            $('#sellerOutput').html(html);
        }
    });
}
</script>